package com.zkjl.protect_business.repository;


import com.zkjl.protect_business.entity.Permission;
import com.zkjl.protect_business.entity.SysRole;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.Collection;
import java.util.List;

public interface PermissionRepository extends ElasticsearchRepository<Permission,String> {

    List<Permission> findAllByIdIn(List<String> ids);

    Boolean deleteAllByParentId(String parentId);

}
